<?php
	session_start();
	if(!ob_start("ob_gzhandler")) ob_start();
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$id=$_POST['user'];
	$an=$_POST['another'];
	echo($id." ".$an);
	mysql_query("INSERT INTO friendships (friendID, userID, confirmed) VALUES ($id,$an,'1')");
	mysql_query("INSERT INTO friendships (userID, friendID) VALUES ($id,$an)");
?>